package com.bj58.disconf.web.service.config;

import com.bj58.disconf.web.common.utils.DBHelper;
import com.bj58.disconf.web.service.config.bo.ConfigHistory;
import com.bj58.disconf.web.service.config.dao.ConfigHistoryDao;
import com.google.inject.Singleton;

/**
 * Created by knightliao on 15/12/25.
 */
@Singleton
public class ConfigHistoryDaoImpl implements ConfigHistoryDao {

    public Long insert(ConfigHistory confighistory) {
        try {
            Object id = DBHelper.getInstance().getDao().sql.insert(confighistory);
            if (id != null) {
                return (Long) id;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0l;
    }
}
